package com.liqi.items.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liqi.items.domain.TCfgBranch;
import com.liqi.items.domain.VO.TCfgBranchVO;
import com.liqi.monitor.domain.DvUpdateList;

import java.util.List;

/**
 * 网点Service接口
 *
 * @author Lwy
 * @date 2022-04-07
 */
public interface ITCfgBranchService extends IService<TCfgBranch>
{
    /**
     * 查询网点
     *
     * @param id 网点主键
     * @return 网点
     */
    public TCfgBranchVO selectTCfgBranchById(Long id);

    /**
     * 查询网点列表
     *
     * @param tCfgBranch 网点
     * @return 网点集合
     */
    public List<TCfgBranch> selectTCfgBranchList(TCfgBranch tCfgBranch);
    public List<TCfgBranchVO> selectTCfgBranchListByParentCode(String parentCode);
    public List<TCfgBranchVO> selectTCfgBranchDataByParentCode(String parentCode);
    public TCfgBranch selectTCfgBranchListByBranchCode(String BranchCode);
    public TCfgBranch selectTCfgBranchByBranchName(String BranchName);
    public List<TCfgBranch> selectTCfgBranchData();




    /**
     * 新增网点
     *
     * @param tCfgBranch 网点
     * @return 结果
     */
    public int insertTCfgBranch(TCfgBranch tCfgBranch);

    /**
     * 修改网点
     *
     * @param tCfgBranch 网点
     * @return 结果
     */
    public int updateTCfgBranch(TCfgBranch tCfgBranch);

    /**
     * 批量删除网点
     *
     * @param ids 需要删除的网点主键集合
     * @return 结果
     */
    public int deleteTCfgBranchByIds(Long[] ids);

    /**
     * 删除网点信息
     *
     * @param id 网点主键
     * @return 结果
     */
    public int deleteTCfgBranchById(Long id);


}
